{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\n// eslint-disable-next-line import/no-named-as-default\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { Row } from '../grid';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Pagination from '../pagination';\nimport Spin from '../spin';\nimport { responsiveArray } from '../_util/responsiveObserver';\nimport extendsObject from '../_util/extendsObject';\nimport Item from './Item';\n// CSSINJS\nimport useStyle from './style';\nexport const ListContext = /*#__PURE__*/React.createContext({});\nexport const ListConsumer = ListContext.Consumer;\nfunction List(_a) {\n  var {\n      pagination = false,\n      prefixCls: customizePrefixCls,\n      bordered = false,\n      split = true,\n      className,\n      children,\n      itemLayout,\n      loadMore,\n      grid,\n      dataSource = [],\n      size,\n      header,\n      footer,\n      loading = false,\n      rowKey,\n      renderItem,\n      locale\n    } = _a,\n    rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n  const paginationObj = pagination && typeof pagination === 'object' ? pagination : {};\n  const [paginationCurrent, setPaginationCurrent] = React.useState(paginationObj.defaultCurrent || 1);\n  const [paginationSize, setPaginationSize] = React.useState(paginationObj.defaultPageSize || 10);\n  const {\n    getPrefixCls,\n    renderEmpty,\n    direction\n  } = React.useContext(ConfigContext);\n  const defaultPaginationProps = {\n    current: 1,\n    total: 0\n  };\n  const triggerPaginationEvent = eventName => (page, pageSize) => {\n    setPaginationCurrent(page);\n    setPaginationSize(pageSize);\n    if (pagination && pagination[eventName]) {\n      pagination[eventName](page, pageSize);\n    }\n  };\n  const onPaginationChange = triggerPaginationEvent('onChange');\n  const onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n  const renderInnerItem = (item, index) => {\n    if (!renderItem) return null;\n    let key;\n    if (typeof rowKey === 'function') {\n      key = rowKey(item);\n    } else if (rowKey) {\n      key = item[rowKey];\n    } else {\n      key = item.key;\n    }\n    if (!key) {\n      key = `list-item-${index}`;\n    }\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: key\n    }, renderItem(item, index));\n  };\n  const isSomethingAfterLastItem = () => !!(loadMore || pagination || footer);\n  const renderEmptyFunc = (prefixCls, renderEmptyHandler) => /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-empty-text`\n  }, locale && locale.emptyText || renderEmptyHandler('List'));\n  const prefixCls = getPrefixCls('list', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  let loadingProp = loading;\n  if (typeof loadingProp === 'boolean') {\n    loadingProp = {\n      spinning: loadingProp\n    };\n  }\n  const isLoading = loadingProp && loadingProp.spinning;\n  // large => lg\n  // small => sm\n  let sizeCls = '';\n  switch (size) {\n    case 'large':\n      sizeCls = 'lg';\n      break;\n    case 'small':\n      sizeCls = 'sm';\n      break;\n    default:\n      break;\n  }\n  const classString = classNames(prefixCls, {\n    [`${prefixCls}-vertical`]: itemLayout === 'vertical',\n    [`${prefixCls}-${sizeCls}`]: sizeCls,\n    [`${prefixCls}-split`]: split,\n    [`${prefixCls}-bordered`]: bordered,\n    [`${prefixCls}-loading`]: isLoading,\n    [`${prefixCls}-grid`]: !!grid,\n    [`${prefixCls}-something-after-last-item`]: isSomethingAfterLastItem(),\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, className, hashId);\n  const paginationProps = extendsObject(defaultPaginationProps, {\n    total: dataSource.length,\n    current: paginationCurrent,\n    pageSize: paginationSize\n  }, pagination || {});\n  const largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n  if (paginationProps.current > largestPage) {\n    paginationProps.current = largestPage;\n  }\n  const paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-pagination`\n  }, /*#__PURE__*/React.createElement(Pagination, Object.assign({}, paginationProps, {\n    onChange: onPaginationChange,\n    onShowSizeChange: onPaginationShowSizeChange\n  }))) : null;\n  let splitDataSource = _toConsumableArray(dataSource);\n  if (pagination) {\n    if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n      splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n    }\n  }\n  const needResponsive = Object.keys(grid || {}).some(key => ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key));\n  const screens = useBreakpoint(needResponsive);\n  const currentBreakpoint = React.useMemo(() => {\n    for (let i = 0; i < responsiveArray.length; i += 1) {\n      const breakpoint = responsiveArray[i];\n      if (screens[breakpoint]) {\n        return breakpoint;\n      }\n    }\n    return undefined;\n  }, [screens]);\n  const colStyle = React.useMemo(() => {\n    if (!grid) {\n      return undefined;\n    }\n    const columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n    if (columnCount) {\n      return {\n        width: `${100 / columnCount}%`,\n        maxWidth: `${100 / columnCount}%`\n      };\n    }\n  }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n  let childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n    style: {\n      minHeight: 53\n    }\n  });\n  if (splitDataSource.length > 0) {\n    const items = splitDataSource.map((item, index) => renderInnerItem(item, index));\n    childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n      gutter: grid.gutter\n    }, React.Children.map(items, child => /*#__PURE__*/React.createElement(\"div\", {\n      key: child === null || child === void 0 ? void 0 : child.key,\n      style: colStyle\n    }, child))) : /*#__PURE__*/React.createElement(\"ul\", {\n      className: `${prefixCls}-items`\n    }, items);\n  } else if (!children && !isLoading) {\n    childrenContent = renderEmptyFunc(prefixCls, renderEmpty || defaultRenderEmpty);\n  }\n  const paginationPosition = paginationProps.position || 'bottom';\n  const contextValue = React.useMemo(() => ({\n    grid,\n    itemLayout\n  }), [JSON.stringify(grid), itemLayout]);\n  return wrapSSR( /*#__PURE__*/React.createElement(ListContext.Provider, {\n    value: contextValue\n  }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n    className: classString\n  }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-header`\n  }, header), /*#__PURE__*/React.createElement(Spin, Object.assign({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-footer`\n  }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent)));\n}\nList.Item = Item;\nexport default List;","map":{"version":3,"names":["_toConsumableArray","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","React","ConfigContext","defaultRenderEmpty","Row","useBreakpoint","Pagination","Spin","responsiveArray","extendsObject","Item","useStyle","ListContext","createContext","ListConsumer","Consumer","List","_a","pagination","prefixCls","customizePrefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale","rest","paginationObj","paginationCurrent","setPaginationCurrent","useState","defaultCurrent","paginationSize","setPaginationSize","defaultPageSize","getPrefixCls","renderEmpty","direction","useContext","defaultPaginationProps","current","total","triggerPaginationEvent","eventName","page","pageSize","onPaginationChange","onPaginationShowSizeChange","renderInnerItem","item","index","key","createElement","Fragment","isSomethingAfterLastItem","renderEmptyFunc","renderEmptyHandler","emptyText","wrapSSR","hashId","loadingProp","spinning","isLoading","sizeCls","classString","paginationProps","largestPage","Math","ceil","paginationContent","assign","onChange","onShowSizeChange","splitDataSource","splice","needResponsive","keys","some","includes","screens","currentBreakpoint","useMemo","breakpoint","undefined","colStyle","columnCount","column","width","maxWidth","childrenContent","style","minHeight","items","map","gutter","Children","child","paginationPosition","position","contextValue","JSON","stringify","Provider","value"],"sources":["/data/messenger.client/node_modules/antd/es/list/index.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\n// eslint-disable-next-line import/no-named-as-default\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { Row } from '../grid';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Pagination from '../pagination';\nimport Spin from '../spin';\nimport { responsiveArray } from '../_util/responsiveObserver';\nimport extendsObject from '../_util/extendsObject';\nimport Item from './Item';\n// CSSINJS\nimport useStyle from './style';\nexport const ListContext = /*#__PURE__*/React.createContext({});\nexport const ListConsumer = ListContext.Consumer;\nfunction List(_a) {\n  var {\n      pagination = false,\n      prefixCls: customizePrefixCls,\n      bordered = false,\n      split = true,\n      className,\n      children,\n      itemLayout,\n      loadMore,\n      grid,\n      dataSource = [],\n      size,\n      header,\n      footer,\n      loading = false,\n      rowKey,\n      renderItem,\n      locale\n    } = _a,\n    rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n  const paginationObj = pagination && typeof pagination === 'object' ? pagination : {};\n  const [paginationCurrent, setPaginationCurrent] = React.useState(paginationObj.defaultCurrent || 1);\n  const [paginationSize, setPaginationSize] = React.useState(paginationObj.defaultPageSize || 10);\n  const {\n    getPrefixCls,\n    renderEmpty,\n    direction\n  } = React.useContext(ConfigContext);\n  const defaultPaginationProps = {\n    current: 1,\n    total: 0\n  };\n  const triggerPaginationEvent = eventName => (page, pageSize) => {\n    setPaginationCurrent(page);\n    setPaginationSize(pageSize);\n    if (pagination && pagination[eventName]) {\n      pagination[eventName](page, pageSize);\n    }\n  };\n  const onPaginationChange = triggerPaginationEvent('onChange');\n  const onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n  const renderInnerItem = (item, index) => {\n    if (!renderItem) return null;\n    let key;\n    if (typeof rowKey === 'function') {\n      key = rowKey(item);\n    } else if (rowKey) {\n      key = item[rowKey];\n    } else {\n      key = item.key;\n    }\n    if (!key) {\n      key = `list-item-${index}`;\n    }\n    return /*#__PURE__*/React.createElement(React.Fragment, {\n      key: key\n    }, renderItem(item, index));\n  };\n  const isSomethingAfterLastItem = () => !!(loadMore || pagination || footer);\n  const renderEmptyFunc = (prefixCls, renderEmptyHandler) => /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-empty-text`\n  }, locale && locale.emptyText || renderEmptyHandler('List'));\n  const prefixCls = getPrefixCls('list', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  let loadingProp = loading;\n  if (typeof loadingProp === 'boolean') {\n    loadingProp = {\n      spinning: loadingProp\n    };\n  }\n  const isLoading = loadingProp && loadingProp.spinning;\n  // large => lg\n  // small => sm\n  let sizeCls = '';\n  switch (size) {\n    case 'large':\n      sizeCls = 'lg';\n      break;\n    case 'small':\n      sizeCls = 'sm';\n      break;\n    default:\n      break;\n  }\n  const classString = classNames(prefixCls, {\n    [`${prefixCls}-vertical`]: itemLayout === 'vertical',\n    [`${prefixCls}-${sizeCls}`]: sizeCls,\n    [`${prefixCls}-split`]: split,\n    [`${prefixCls}-bordered`]: bordered,\n    [`${prefixCls}-loading`]: isLoading,\n    [`${prefixCls}-grid`]: !!grid,\n    [`${prefixCls}-something-after-last-item`]: isSomethingAfterLastItem(),\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, className, hashId);\n  const paginationProps = extendsObject(defaultPaginationProps, {\n    total: dataSource.length,\n    current: paginationCurrent,\n    pageSize: paginationSize\n  }, pagination || {});\n  const largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n  if (paginationProps.current > largestPage) {\n    paginationProps.current = largestPage;\n  }\n  const paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-pagination`\n  }, /*#__PURE__*/React.createElement(Pagination, Object.assign({}, paginationProps, {\n    onChange: onPaginationChange,\n    onShowSizeChange: onPaginationShowSizeChange\n  }))) : null;\n  let splitDataSource = _toConsumableArray(dataSource);\n  if (pagination) {\n    if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n      splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n    }\n  }\n  const needResponsive = Object.keys(grid || {}).some(key => ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key));\n  const screens = useBreakpoint(needResponsive);\n  const currentBreakpoint = React.useMemo(() => {\n    for (let i = 0; i < responsiveArray.length; i += 1) {\n      const breakpoint = responsiveArray[i];\n      if (screens[breakpoint]) {\n        return breakpoint;\n      }\n    }\n    return undefined;\n  }, [screens]);\n  const colStyle = React.useMemo(() => {\n    if (!grid) {\n      return undefined;\n    }\n    const columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n    if (columnCount) {\n      return {\n        width: `${100 / columnCount}%`,\n        maxWidth: `${100 / columnCount}%`\n      };\n    }\n  }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n  let childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n    style: {\n      minHeight: 53\n    }\n  });\n  if (splitDataSource.length > 0) {\n    const items = splitDataSource.map((item, index) => renderInnerItem(item, index));\n    childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n      gutter: grid.gutter\n    }, React.Children.map(items, child => /*#__PURE__*/React.createElement(\"div\", {\n      key: child === null || child === void 0 ? void 0 : child.key,\n      style: colStyle\n    }, child))) : /*#__PURE__*/React.createElement(\"ul\", {\n      className: `${prefixCls}-items`\n    }, items);\n  } else if (!children && !isLoading) {\n    childrenContent = renderEmptyFunc(prefixCls, renderEmpty || defaultRenderEmpty);\n  }\n  const paginationPosition = paginationProps.position || 'bottom';\n  const contextValue = React.useMemo(() => ({\n    grid,\n    itemLayout\n  }), [JSON.stringify(grid), itemLayout]);\n  return wrapSSR( /*#__PURE__*/React.createElement(ListContext.Provider, {\n    value: contextValue\n  }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n    className: classString\n  }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-header`\n  }, header), /*#__PURE__*/React.createElement(Spin, Object.assign({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-footer`\n  }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent)));\n}\nList.Item = Item;\nexport default List;"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,IAAIC,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC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